<?php

namespace App\Http\Controllers\Common;

use App\Forms\AdminUserForm;
use App\Http\Controllers\Controller;
use App\Validators\AdminUserValidator;

class AdminUserController extends Controller
{

    public function login(AdminUserForm $form)
    {
        AdminUserValidator::validate('login');
        $data = $form->login();

        return $this->output($data);
    }
}
